<!DOCTYPE html>
<!--suppress ALL-->
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>xhlMr - 练习</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
    <style type="text/css">
        /* Chart.js */

        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }
    </style>
</head>

<body>

<!--		顶部导航栏-->
<div th:replace="~{commons/commons :: top}"></div>

<div class="container-fluid">
    <div class="row">
        <!--				侧边栏-->
        <div th:replace="~{commons/commons :: sidebar(active='list')}"></div>

        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <form th:action="@{/update}" method="post">
                <input type="hidden" th:value="${emp.getEmpId()}" name="empId">
                <div class="form-group">
                    <label>LastName</label>
                    <input type="text" th:value="${emp.getLastName()}" name="lastName" class="form-control"
                           placeholder="xhlMr">
                </div>
                <div class="form-group">
                    <label>Email</label>
                    <input type="text" th:value="${emp.getEmail()}" name="email" class="form-control"
                           placeholder="1685331320@qq.com">
                </div>
                <div class="form-group">
                    <label>Gender</label>
                    <div class="form-check form-check-inline">
                        <input th:checked="${emp.getGender()==1}" class="form-check-input" type="radio" name="gender"
                               value="1">
                        <label class="form-check-label">男</label>
                    </div>
                    <div class="form-check form-check-inline">
                        <input th:checked="${emp.getGender()==0}" class="form-check-input" type="radio" name="gender"
                               value="0">
                        <label class="form-check-label">女</label>
                    </div>
                </div>
                <div class="form-group">
                    <label>Departement</label>
                    <select class="form-control" name="depId">
                        <option th:each="dep:${departments}"
                                th:selected="${dep.getDepId() == emp.departement.getDepId()}"
                                th:text="${dep.getDepartementName()}" th:value="${dep.getDepId()}"></option>
                    </select>
                </div>
                <div class="form-group">
                    <label>Birth</label>
                    <input type="text" th:value="${#dates.format(emp.getBirth(),'yyyy-MM-dd HH-mm-ss')}" name="birth"
                           class="form-control" placeholder="2020/7/7">
                </div>
                <div>
                    <button type="submit" class="btn btn-primary">修改</button>
                </div>
            </form>
        </main>
    </div>
</div>


</body>

</html>